package com.leo.base;

/**
 * @author liusl
 * @version 1.0
 * @date 2018/12/8 20:48
 */
public class BaseResponse<T> extends ReturnResponse {

    private T data;

    public BaseResponse(ReturnResponse status) {
        super(status.getCode(),status.getDesc());
    }
    public BaseResponse(ReturnResponse status, T data) {
        super(status.getCode(),status.getDesc());
        this.data = data;
    }

    public BaseResponse(int code, String desc) {
        super(code,desc);
    }

   public BaseResponse(int code, String desc, T data) {
        super(code,desc);
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
